package com.company.structural.proxy_pattern.dynamic_proxy;

/**
 * 用户
 * @ClassName UserDAO
 * @Author tiezheng.han
 * @Date 2020/9/1 19:31
 **/
public class UserDAO implements AbstractUserDAO {
    @Override
    public Boolean findUserById(String userId) {
        if (userId.equals("张无忌")){
            System.out.println("查询ID为" + userId + "的用户信息成功！");
            return true;
        } else {
            System.out.println("查询ID为" + userId + "的用户信息失败！");
            return false;
        }
    }
}
